package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.pojo.User;

/**
 * Created by lenovo on 2018/4/1.
 */
public interface UserService {
    ServerResponse<User> login(String username, String password);

    ServerResponse register(User user);

    ServerResponse checkVaild(String str, String type);

    ServerResponse selectQuestions(String username);

    ServerResponse checkAnswer(String username, String question, String answer);

    ServerResponse forgetResetPassword(String username, String passwordNew, String forgetToken);

    ServerResponse resetPassword(String passwordOld, String passwordNew, User user);

    ServerResponse<User> updateInformation(User user);

    ServerResponse getInformation(Integer id);
}
